package dao.dto;

import util.Util;

public class PrioriteDto {
	private String _priorite;
        
        //Constructeurs
	public PrioriteDto(  String priorite) {
		setPriorite(priorite);
	}
        
	//Setters	
        public void setPriorite(String priorite) {
		Util.checkString(priorite);
                if (priorite.equals("F") || priorite.equals("M") || priorite.equals("U")) this._priorite = priorite;
                else throw new IllegalArgumentException();
	}
	
        //Getters 
	public String getPriorite() {
		return _priorite;
	}
}